public interface DriverInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
DriverInterface.ArrayType
This
enum is used to specify the type of Array. |
static class |
DriverInterface.SortType
This
enum is used to specify the desired sort algorithm:
MergeSort - Indicates the Merge Sort algorithm.
QuickSort - Indicates the Quick Sort algorithm.
HeapSort - Indicates the Heap Sort algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer[] |
createArray(DriverInterface.ArrayType arrayType,
int arraySize)
This method is used to create a new array of Integer objects of the type and size
specified.
|
TestTimes[] |
runSorts(DriverInterface.ArrayType arrayType,
int arraySize,
int numberOfTimes)
This method will run all the possible sorts a specified number of times.
|
java.lang.Integer[] createArray(DriverInterface.ArrayType arrayType, int arraySize)
arrayType - This parameter specifies the type of array to create. See the enum DriverInterface.ArrayType.arraySize - This parameter specifies the size of array to create.TestTimes[] runSorts(DriverInterface.ArrayType arrayType, int arraySize, int numberOfTimes)
arrayType - This parameter specifies the type of array to create each time the sort is run.
See the enum DriverInterface.ArrayType.arraySize - This parameter specifies the size of array to create each time the sort is run.numberOfTimes - This parameter specifies the number of times to run the specified sort.